﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lion.WeiXin.Core.Models
{

    //此文件定义所有枚举类型 
    /// <summary>
    /// 执行动作CRUD
    /// </summary>
   public enum ActionEnum { 
        Create,Update,Delete,Details,Select
    }

   public enum SaveStateEnum { 
        OK,NO,YES
   }

    /// <summary>
    /// 系统中所有使用的键值
    /// </summary>
   public enum KeysEnum { 
       /// <summary>
       /// 微信用户：保存微信个人Cookies数据
       /// </summary>
        WeChatUser,
       /// <summary>
       /// 购物车：在Cookie 中保存购物车信息
       /// </summary>
        ShoppingCart,
       /// <summary>
       /// 当前VIPCard 用户：  在Cookie 中保存当前卡用户信息
       /// </summary>
        VipCard,
       /// <summary>
       /// 购物车总金额
       /// </summary>
        Total,
       /// <summary>
       /// 微信订阅号唯一ID
       /// </summary>
        WeChatOpenId,
       /// <summary>
       /// 当前用户名:有真实姓名显示真实姓名，无真实姓名显示微信昵称
       /// </summary>
        NickName
   }


   public enum ArticleStateEnum {待发布,已发布 }
    /// <summary>
    /// 自动回复类型
    /// </summary>
   public enum AutoReplyEnum { 
        文本动作,菜单动作,语音动作,任意指令
   }

   public enum VipCardUseEnum { 充值=107001, 消费=107002}

   public enum CardStateEnum { 使用中 = 101001, 停用 = 101002 }

   public enum CardTypeEnum { 储值卡=108001,计次卡=108002}

   /// <summary>
   /// 订单状态
   /// </summary>
   public enum OrderStateEnum { 结单,已支付,待支付,废单}
    /// <summary>
    /// 订单来源
    /// </summary>
   public enum OrderComeFrom { 微信,前台}

   /// <summary>
   /// 支付方式
   /// </summary>
   public enum OrderPayTypeEnum
   {
       储值卡, 计次卡
   }
   /// <summary>
   /// 系统操作日志类型
   /// </summary>
   public enum OperateLogTypeEnum { 登录日志,订单日志,操作日志}

   public class DataKeysModel {

       private DataKeysModel() { }

       public static readonly DataKeysModel Instance = new DataKeysModel();

       /// <summary>
       /// 结束日期  2999-01-01 00:00:00.000
       /// </summary>
       public DateTime EndDate {
           get { return DateTime.Parse("2999-01-01 00:00:00.000"); }
       }


        
   }
}
